package com.itheima.d3_static.demo03;

/**
 * 员工类，作为父类
 */
public class Employee {
    //1.定义属性
    private String name;
    private int age;
    private String department;

    //2.该系统中每个员工的公司都一样！而且公司名不能随便修改，定义成常量。推荐使用：public static final修饰
    public static final String COMPANY = "黑马头条科技有限公司";

    //3.定义方法：工作
    public void work() {

    }

    //提供Getter and Setter
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }
}
